package com.yuexunit.operationman.nbsy.module.SafeOperation;

import android.content.Context;
import android.content.res.Resources;

import com.yuexunit.operationman.nbsy.R;
import com.yuexunit.operationman.nbsy.module.SafeOperation.bean.SafeOperationBean;

import java.util.ArrayList;

/**
 * Created by work-jx on 2017/7/4.
 */
public class SafeOperationContracts {
    public static final ArrayList<SafeOperationBean.ObjectEntity.SecurityItemListEntity> securityItemListEntities(Context context)
    {
        Resources res =context.getResources();
        String[] languages = res.getStringArray(R.array.safeoperation);
        ArrayList<SafeOperationBean.ObjectEntity.SecurityItemListEntity> securityItemListEntities = new ArrayList<>();
        for(int i = 0; i<languages.length;i++)
        {
            SafeOperationBean.ObjectEntity.SecurityItemListEntity securityItemListEntity = new SafeOperationBean.ObjectEntity.SecurityItemListEntity();
            securityItemListEntity.setItemCode(languages[i]);
            securityItemListEntity.setItemValue("");
            securityItemListEntity.setItemName("");
            securityItemListEntity.setSecurityId("");
            securityItemListEntity.setSecurityItemId("");
            securityItemListEntities.add(securityItemListEntity);
        }
        return securityItemListEntities;
    };

    public static final ArrayList<SafeOperationBean.ObjectEntity.SecurityItemListEntity> securityItemListEntities_new(Context context)
    {
        Resources res =context.getResources();
        String[] languages = res.getStringArray(R.array.safeoperation);
        ArrayList<SafeOperationBean.ObjectEntity.SecurityItemListEntity> securityItemListEntities = new ArrayList<>();
        for(int i = 0; i<languages.length;i++)
        {
            SafeOperationBean.ObjectEntity.SecurityItemListEntity securityItemListEntity = new SafeOperationBean.ObjectEntity.SecurityItemListEntity();
            securityItemListEntity.setItemCode(languages[i]);
            securityItemListEntity.setItemName("");
            securityItemListEntity.setSecurityId("");
            securityItemListEntity.setSecurityItemId("");
            switch (languages[i]) {
                case "MZ_HuanZheXinXi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_ShouShuFangShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_ShouShuBuWei":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_ShouShuZhiQing":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_MaZuiZhiQing":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_MaZuiFangShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_MaZuiSheBeiAnQuan":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_PiFuWanZheng":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_ShuQianPiFuZhunBei":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_JingMaiTongDaoJianLi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_HuanZheGuoMingShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_KangJunYaoWuPiShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_ShuQianBeiXue":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_JiaTi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_TiNeiZhiRuWu":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_YingXiangXueZiLiao":
                    securityItemListEntity.setItemValue("");
                    break;
                case "MZ_Other":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_HuanZheXinXi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_ShouShuFangShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_ShouShuBuWei":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_ShouShuTiWei":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_ShouShuYiShiChenShu":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_MaZuiYiShiChenShu":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_ShouShuHuShiChenShu":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_XiangGuanYingXiang":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_TiemOut":
                    securityItemListEntity.setItemValue("");
                    break;
                case "OS_Other":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_HuanZheXinXi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_ShiJiShouShuFangShi":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_ShouShuYongYaoShuXue":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_ShouShuYongWuQingDian":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_ShouShuBiaoBen":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_PiFuWangZheng":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_GeZhongGuanLu":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_HuanZheQuXiang":
                    securityItemListEntity.setItemValue("");
                    break;
                case "BL_Other":
                    securityItemListEntity.setItemValue("");
                    break;
                default:
                    securityItemListEntity.setItemValue("");
                    break;
            }
            securityItemListEntities.add(securityItemListEntity);
        }
        return securityItemListEntities;
    };
}
